//--------------------------------------------------------------
//
// Qizhi Zhang 
// ezhung@gmail.com
// http://www.moorwind.com
//
//--------------------------------------------------------------
package reader.model.vo
{
	import __AS3__.vec.Vector;
	
	[Bindable]
	public class AlbumPhotosVO
	{
		/**
		 * 返回相册标题
		 */
		public var title:String;
		/**
		 * 返回相册封面
		 */
		public var defaultimage:String;
		/**
		 * 返回相册包含的照片数量
		 */
		public var photosCount:uint;
		
		/**
		 * 返回相册包含的照片
		 */
		public var list:Vector.<PhotoVO> = new Vector.<PhotoVO>;
		
		//----------------------------------------------------------------------------
		//
		// Convert Vector to Array
		//
		//----------------------------------------------------------------------------
		
		public static function VectorToArray(v:Vector.<AlbumPhotosVO>):Array/* of AlbumPhotosVO */
		{
			var a:Array = [];
			for each(var i:AlbumPhotosVO in v)
			{
				a.push(i);
			}
			return a;
		}
	}
}